home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
comm
/
boyan51a.zip
/
NITE.BSC
< prev
next >
Wrap
Text File
|
1993-11-15
|
6KB
|
127 lines
\\
\\ Nite.bsc by: Lee Breeden
\\
\\ This is an example of a script that is used to call systems at a
\\ specified time and date.
\\ The log file is set by todays date. "%B:log\%MO%DA.log"
\\
|Logon
\ZS
\\
\\ This is where the script is called to set the time to start calling
\\ the remote systems listed below.
\\
\PU[3:55] \\ Wait till specified time
|start
\nd[%B:]\pa[2]
\AF%B:dsz.log[ «══════════════ Logged on %MO/%DA %HR:%Mi ═════════════» ]
\AF%B:boyan.use[ «══════════════ Logged on %MO/%DA %HR:%Mi ═════════════» ]
\\
\\
\\ The next part will make it so that we are only keeping 5 log files on
\\ the system.
\\
\\ the commands below will keep five days of old log files. Things will be
\\ slightly different at the end of the month because of the difference in
\\ the days of the month.
\\
\sv0[%B:log\]\sv1[%da]\sv2[%MO]
\iv1+01[\+v1[26]\ie-%V2,01[\+v2[-1]|\+v2[12]]\dc-[del %v00%v2%v1.log]]
\iv1+02[\+v1[26]\ie-%v2,01[\+v2[-1]|\+v2[12]]\dc-[del %v00%v2%v1.log]]
\iv1+03[\+v1[26]\ie-%v2,01[\+v2[-1]|\+v2[12]]\dc-[del %v00%v2%v1.log]]
\iv1+04[\+v1[26]\ie-%v2,01[\+v2[-1]|\+v2[12]]\dc-[del %v00%v2%v1.log]]
\iv1+05[\+v1[26]\ie-%v2,01[\+v2[-1]|\+v2[12]]\dc-[del %v00%v2%v1.log]]
\iv1+06[\+v1[26]\ie-%v2,01[\+v2[-1]|\+v2[12]]\dc-[del %v0%v2%v1.log]]
\iv1+06[\+v1[-5]\ie-%v2,01[\+v2[-0]|\+v2[12]]\dc-[del %v0%v2`29.log]]
\iv1+06[\+v1[-5]\ie-%v2,01[\+v2[-1]|\+v2[12]]\dc-[del %v0%v2`29.log]]
\iv1+06[\+v1[-5]\ie-%v2,01[\+v2[-1]|\+v2[12]]\dc-[del %v0%v2`30.log]]
\iv1+06[\+v1[-5]\ie-%v2,01[\+v2[-1]|\+v2[12]]\dc-[del %v0%v2`*.log]]
\iv1+06[\+v1[-5]\dc-[del %v0%v20%v1.log]]
\iv1+07[\+v1[-5]\dc-[del %v0%v20%v1.log]]
\iv1+08[\+v1[-5]\dc-[del %v0%v20%v1.log]]
\iv1+09[\+v1[-5]\dc-[del %v0%v20%v1.log]]
\iv1+10[\+v1[-5]\dc-[del %v0%v20%v1.log]]
\iv1+11[\+v1[-5]\dc-[del %v0%v20%v1.log]]
\iv1+12[\+v1[-5]\dc-[del %v0%v20%v1.log]]
\iv1+13[\+v1[-5]\dc-[del %v0%v20%v1.log]]
\iv1+14[\+v1[-5]\dc-[del %v0%v20%v1.log]]
\iv1+15[\+v1[-5]\dc-[del %v0%v2%v1.log]]
\iv1+16[\+v1[-5]\dc-[del %v0%v2%v1.log]]
\iv1+17[\+v1[-5]\dc-[del %v0%v2%v1.log]]
\iv1+18[\+v1[-5]\dc-[del %v0%v2%v1.log]]
\iv1+19[\+v1[-5]\dc-[del %v0%v2%v1.log]]
\iv1+20[\+v1[-5]\dc-[del %v0%v2%v1.log]]
\iv1+21[\+v1[-5]\dc-[del %v0%v2%v1.log]]
\iv1+22[\+v1[-5]\dc-[del %v0%v2%v1.log]]
\iv1+23[\+v1[-5]\dc-[del %v0%v2%v1.log]]
\iv1+24[\+v1[-5]\dc-[del %v0%v2%v1.log]]
\iv1+25[\+v1[-5]\dc-[del %v0%v2%v1.log]]
\iv1+26[\+v1[-5]\dc-[del %v0%v2%v1.log]]
\iv1+27[\+v1[-5]\dc-[del %v0%v2%v1.log]]
\iv1+28[\+v1[-5]\dc-[del %v0%v2%v1.log]]
\iv1+29[\+v1[-5]\dc-[del %v0%v2%v1.log]]
\iv1+30[\+v1[-5]\dc-[del %v0%v2%v1.log]]
\iv1+31[\+v1[-5]\dc-[del %v0%v2%v1.log]]
\II+07,%Da[\dc-[ren %S:newfile.lst file%v27.new]] \\ Change filename of newfiles log
\II+14,%Da[\dc-[ren %S:newfile.lst file%v214.new]] \\ Change filename of newfiles log
\II+21,%Da[\dc-[ren %S:newfile.lst file%v221.new]] \\ Change filename of newfiles log
\II+28,%Da[\dc-[ren %S:newfile.lst file%v228.new]] \\ Change filename of newfiles log
\II+01,%Da[\dc-[ren %B:dsz.log dsz%v2.log]] \\ Change filename of dsz log
\II+01,%Da[\dc-[ren %B:files.new files%v2.new]] \\ Change filename of newfiles log
\II+01,%Da[\dc-[ren %B:dnfiles.lst files%v2.lst]] \\ Change filename of dnfiles log
\II+01,%Da[\dc-[ren %B:boyan.use boyan%v2.use]] \\ Change file of boyan.use log
\II+01,%Da[\dc-[ren %S:newfile.lst newfil%V2.lst]]\\ Change file of new files list
\\
\\ The first thing that this does, is to make a log file that is assumed to
\\ be located off of the boyan directory in a directory called boyan\log
\\
\IE-%LN,%B:log\%MO%DA.log[\LD+[%B:log\%MO%DA.log]\LD-]
\fe+%S:newfiles.lst[\dc-[type %s:newfiles.lst >> %s:newfile.lst]
\fe+%S:newfiles.lst[\dc-[del %s:newfiles.lst]
\\
\\ Appends todays date to the log file for reference.
\AF%LN[ ]
\AF%LN[ «═════════ Log started on %MO/%DA at %HR:%Mi ════════════» ]
\AF%LN[ ]
\IE+ON,%LD[\LD-]
\\
\\ ReSets modem for the start of the calling session and then runs init
\\ string.
\\
ATZ~{~~
\MA[9]
\\wf[OK]AT&A3&B1&C1&D2&H1&R2&M4&N0&K3M0{
\\wf[OK]
\bb-
\AV[0] \\ alarm off
\KO[0] \\ keyboard time out TO to 0
\\
\\ I would recomend that you use a nite phone directory, so that any
\\ modifications to your normal one won't effect the nitely calling numbers.
\\
\fd[nite.fon] \\ ******** insert name of phone directory ********
\QC \\ clear queue [insert numbers from directory to call[?]]
\\
\\ Adds the following numbers to the dialing queue.
\\
\QA[6] \\ 6 NetEast (Howard Hartman)
\QA[2] \\ 1 Running Board (Bonnie Anthony) 229-5342
\qa[1] \\ 2 Running Board (Bonnie Anthony) 229-5623
\qa[19] \\ 19 Eds Home of Columbia MD 9600 1-301-730-????
\qa[17] \\ 17 Eds Home of Columbia MD 9600 1-301-854-3076
\\
\\ The systems listed below are examples of systems that are being called
\\ by date. The \II+ command says if %DA day (01-31) is included in the
\\ the following numbers (in this case dates) call this system.
\\
\\ 18,22,29
\\II+%DA,05,12,19,26[\QA[11]] \\ 11 Thumper's Den 1-918-355-3113
\\II+%DA,01,05,09,13,17,21,25,29[\QA[5]] \\ 5 The Science Lab BBS 1-301-466-0949
\\ Below, systems are not called nitely but have file functions U/L, D/L of
\\ files that you just can not wait to do. These systems will be called if
\\ *.dow or *.up file exist.
\FE+%S:inter.up[\qa[Interconnect]]
\FE+%S:ccmail.up[\qa[15]]